projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c6c87
)
stack: Don't leak a reference
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 13 Feb 2019 13:42:58 +0000
(08:42 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 13 Feb 2019 13:42:58 +0000
(08:42 -0500)
The page holds a reference to the widget, so can't just clear
this pointer.
gtk/gtkstack.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstack.c
b/gtk/gtkstack.c
index 633a5ae712c17b84e92483a223ed7a943ee81f97..c1c843a45a2f706ccedea70feb0639ef8e483482 100644
(file)
--- a/
gtk/gtkstack.c
+++ b/
gtk/gtkstack.c
@@
-1425,7
+1425,7
@@
stack_remove (GtkStack *stack,
was_visible = gtk_widget_get_visible (child);
-
child_info->widget = NULL
;
+
g_clear_object (&child_info->widget)
;
if (priv->visible_child == child_info)
{